<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="language" content="en" />

	<!-- blueprint CSS framework -->
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
	<!--[if lt IE 8]>
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/ie.css" media="screen, projection" />
	<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/jquery-ui.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
	<!-- Dropdown Starts -->
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js"></script>
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.hoverIntent.minified.js"></script>

	<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>

<body>

<div id="page">

	<div id="header" class="heading_bg">
		
		<div style="margin-left: 515px;"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/logo.gif" align="middle" height="100px" width="100px" ></img>
	
	<?php

	if (!Yii::app()->user->isGuest)
	{
	echo '<div class="login_wrapper" style="margin-top: 80px;">';	
	echo "<p>Welcome!<b>".Yii::app()->user->name."</b></p>";
 	echo CHtml::link(Yii::app()->getModule('admin')->t("Logout").' ',Yii::app()->getModule('admin')->logoutUrl, array('class'=>'logout')); 
	echo '</div>';	
	}
 ?>
	</div><!-- header -->
	  </div>
	<div class="container">  
<div style="width: 216px !important;">
        <?php 
		if (!Yii::app()->user->isGuest)
	{
		$this->widget('ext.efgmenu.EFgMenu',array(
			'id'=>'horzmenu',
			'menubarOptions' => array(
				'direction'=>'vertical'
			),
			'items'=>array(
				array('label'=>'Home', 'url'=>array('/admin/profile/profile')),
				array('label'=>'Profile', 'url'=>'javascript:;', 'items'=>array(
					array('label'=>'Edit Profile', 'url'=>array('/admin/profile/Edit')),
					array('label'=>'Change Password', 'url'=>array('/admin/profile/changepassword')),
					)),
				array('label'=>'User Management', 'url'=>'javascript:;', 'items'=>array(
					array('label'=>'Manage Users', 'url'=>array('/admin/cpanel/manage')),
					array('label'=>'Create User', 'url'=>array('/admin/cpanel/create')),
					array('label'=>'Manage Permissions', 'url'=>array('/admin/permission')),
					)),
				array('label'=>'Pages Management', 'url'=>'javascript:;', 'items'=>array(
					array('label'=>'List Pages', 'url'=>array('/admin/StaticPages/admin')),
					array('label'=>'Create pages', 'url'=>array('/admin/StaticPages/create')),
					)),
				 	array('label'=>'Photo Management', 'url'=>'javascript:;', 'items'=>array(
					array('label'=>'Manage Photos', 'url'=>array('/admin/Photo/admin')),
					array('label'=>'Create photos', 'url'=>array('/admin/Photo/create')),
					)),
			
			
		)) );
}

?></div>
	<?php  	if (!Yii::app()->user->isGuest)
	{ ?>
	<div style="margin-top: -155px !important;margin-left: 212px !important;border: 1px solid !important; padding: 30px !important; height: 600px !important;">
	<?php echo $content; ?>
	</div>
	<?php } else {?>
	<div style="border: 1px solid !important; padding: 30px !important; height: 600px !important;">
	
		<?php echo $content; ?>
   </div>
   <?php } ?>
	<div id="footer">
		<!--Copyright &copy; <?php //echo date('Y'); ?>. <br/>
		tastyplex.--><br/>
	</div><!-- footer -->

</div><!-- page -->

</body>
</html>